package com.xinyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: XinYu
 * @since 2025-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_public")
@ApiModel(value="TbPublic对象", description="")
public class Public implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "公告标题")
    private String title;

    @ApiModelProperty(value = "公告摘要")
    private String abstractContent;

    @ApiModelProperty(value = "公告内容")
    private String content;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "发布时间")
    private String publishTime;

    @ApiModelProperty(value = "置顶0    不置顶1")
    private Integer top;

    @ApiModelProperty(value = "阅读次数")
    private Integer readcount;

    @ApiModelProperty(value = "附件URL")
    private String attachment;

    @ApiModelProperty(value = "附件名字")
    private String attachmentName;

    private Integer isDelete = 0;

    @ApiModelProperty(value = "0全站")
    private Integer siteId;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Site site;

}
